/**
 * @Time: 2018/11/23 11:15
 * @Author: wangmin
 * @File: status_field
 * @Software: GoLand
 */
package object

var StatusField map[string]map[int8]string

func init() {
	StatusField = map[string]map[int8]string{
		"Status": {
			1: "正常",
			2: "待续传",
			3: "待追加",
			4: "待合并",
		},
		"IsDel": {
			0: "正常",
			1: "删除",
		},
	}
}

//获取状态字段文本值
func GetStatusFieldText(field string, value int8) string {
	t, _ := StatusField[field][value]
	return t
}

//字段是否存值
func StatusValueExists(field string, value int8) bool {
	_, b := StatusField[field][value]
	return b
}
